home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000002_ware@news.cis.ohio-state.edu_Thu Dec 1 05:20:40 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  6KB

  1. Received: from news.cis.ohio-state.edu by cs.umb.edu with SMTP id AA27109
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 1 Dec 1994 10:20:54 -0500
  3. Received: from stumble.cis.ohio-state.edu (stumble.cis.ohio-state.edu [164.107.128.12]) by news.cis.ohio-state.edu (8.6.8.1/8.6.4) with ESMTP id KAA22375 for <tex-k@cs.umb.edu>; Thu, 1 Dec 1994 10:20:48 -0500
  4. From: Peter Ware <ware@cis.ohio-state.edu>
  5. Received: (ware@localhost) by stumble.cis.ohio-state.edu (8.6.7/8.6.4) id KAA22714; Thu, 1 Dec 1994 10:20:40 -0500
  6. Date: Thu, 1 Dec 1994 10:20:40 -0500
  7. Message-Id: <199412011520.KAA22714@stumble.cis.ohio-state.edu>
  8. To: tex-k@cs.umb.edu
  9. Subject: Path expansion in kpathsea 2.4 and dvips-5.58c
  10.  
  11. Thanks for the great software.
  12.  
  13. First, a patch to kpsexpand.c that also prints out the filename for
  14. several different file types.  I wanted to make sure which file it was
  15. actually finding.  It adds an optional fourth argument that if present
  16. causes kpsexpand to print the full path to the file for each of
  17. several types.
  18.  
  19. diff -c kpsexpand.c.~1~ kpsexpand.c
  20. *** kpsexpand.c.~1~    Mon Oct 17 15:48:30 1994
  21. --- kpsexpand.c    Thu Dec  1 09:50:56 1994
  22. ***************
  23. *** 8,13 ****
  24. --- 8,14 ----
  25.   /* Not worth chance of collisions to #include anything but this.  */
  26.   #include <stdio.h> /* for stderr */
  27.   
  28. + #include "tex-file.h"
  29.   extern char *kpse_var_expand ();
  30.   extern void kpse_set_progname ();
  31.   
  32. ***************
  33. *** 16,27 ****
  34.       int argc;
  35.       char *argv[];
  36.   {
  37. !   if (argc != 3)
  38.       {
  39. !       fprintf (stderr, "Usage: %s progname string\n", argv[0]);
  40.         exit (1);
  41.       }
  42.     kpse_set_progname (argv[1]);
  43.     printf ("%s\n", kpse_var_expand (argv[2]));
  44.     return 0;
  45.   }
  46. --- 17,35 ----
  47.       int argc;
  48.       char *argv[];
  49.   {
  50. !   if (argc < 3)
  51.       {
  52. !       fprintf (stderr, "Usage: %s progname string [filename]\n", argv[0]);
  53.         exit (1);
  54.       }
  55.     kpse_set_progname (argv[1]);
  56.     printf ("%s\n", kpse_var_expand (argv[2]));
  57. +   if (argc == 4)
  58. +   {
  59. +       printf ("PICT: %s\n", kpse_find_pict (argv[3]));
  60. +       printf ("TEX: %s\n", kpse_find_tex (argv[3]));
  61. +       printf ("TFM: %s\n", kpse_find_tfm (argv[3]));
  62. +       printf ("VF: %s\n", kpse_find_vf (argv[3]));
  63. +   }
  64.     return 0;
  65.   }
  66.  
  67.  
  68. The bug is dvips 5.58c is having trouble finding a file pstricks.pro
  69. with the '!!' added before the final element of the path -- i.e. it
  70. appears it can't find the file in the ls-R database although kpsexpand
  71. can.
  72.  
  73. The following adds !! to DVIPSHEADERS, shows that kpsexpand can find
  74. the file and dvips cannot.  Then I remove the '!!' and dvips can now
  75. find the file.
  76.  
  77. Any guesses?
  78.  
  79. example% uname -a
  80. HP-UX stumble A.09.05 A 9000/715 2003003568 two-user license
  81.  
  82.  
  83. example% setenv DVIPSHEADERS '.:~/usr/tex//:$TEXMF/dvips:$TEXMF/fonts//type1:\!\!$TEXMF/tex//'
  84.  
  85.  
  86. example% kpsexpand dvips '$DVIPSHEADERS' pstricks.pro
  87. .:~/usr/tex//:/usr/local/tex/lib/texmf/dvips:/usr/local/tex/lib/texmf/fonts//type1:!!/usr/local/tex/lib/texmf/tex//
  88. PICT: /usr/local/tex/lib/texmf/tex/local/pstricks/pstricks.pro
  89. TEX: /usr/local/tex/lib/texmf/tex/local/pstricks/pstricks.pro
  90. TFM: 
  91. VF: 
  92.  
  93.  
  94.  
  95. example% dvips dvips -d 82 design.dvi -o
  96. ...
  97. This is dvipsk 5.58c Copyright 1986, 1994 Radical Eye Software
  98. kdebug:fopen(design.dvi.dvi, r) => 0x0
  99. kdebug:fopen(design.dvi, r) => 0x40001048
  100. input file design.dvi output file design.ps swmem 3500000
  101. kdebug:Search path for dvips header/type1 font files (from DVIPSHEADERS environment variable)
  102. kdebug:  = .:/n/flower/0/ware/usr/tex//:/usr/local/tex/lib/texmf/dvips:/usr/local/tex/lib/texmf/fonts//type1:!!/usr/local/tex/lib/texmf/tex//
  103. kdebug:  before expansion = .:~/usr/tex//:$TEXMF/dvips:$TEXMF/fonts//type1:!!$TEXMF/tex//
  104. kdebug:  font override var applies = 0
  105. kdebug:  application config file path = (none)
  106. kdebug:  texmf.cnf path = .:~/usr/tex//:$TEXMF/dvips:$TEXMF/fonts//type1:$TEXMF/tex//
  107. kdebug:  compile-time path = .:/usr/local/tex/lib/texmf/dvips:/usr/local/tex/lib/texmf/fonts//type1
  108. kdebug:  suffix = (none)
  109. kdebug:  search only with suffix = 0
  110. kdebug:  runtime generation program = (none)
  111. kdebug:  extra program args = (none)
  112. kdebug:fopen(/usr/local/tex/lib/texmf/dvips/texc.pro, r) => 0x40001058
  113. kdebug:fclose(0x40001058) => 0
  114. Adding header file "texc.pro" 4102
  115. ' TeX output 1994.11.30:1602' -> design.ps
  116. dvips: ! Couldn't find header file pstricks.pro
  117.  
  118.  
  119.  
  120. example% setenv DVIPSHEADERS '.:~/usr/tex//:$TEXMF/dvips:$TEXMF/fonts//type1:$TEXMF/tex//'
  121.  
  122. example% dvips -d 82 design.dvi -o
  123. ...
  124. This is dvipsk 5.58c Copyright 1986, 1994 Radical Eye Software
  125. kdebug:fopen(design.dvi.dvi, r) => 0x0
  126. kdebug:fopen(design.dvi, r) => 0x40001048
  127. input file design.dvi output file design.ps swmem 3500000
  128. kdebug:Search path for dvips header/type1 font files (from DVIPSHEADERS environment variable)
  129. kdebug:  = .:/n/flower/0/ware/usr/tex//:/usr/local/tex/lib/texmf/dvips:/usr/local/tex/lib/texmf/fonts//type1:/usr/local/tex/lib/texmf/tex//
  130. kdebug:  before expansion = .:~/usr/tex//:$TEXMF/dvips:$TEXMF/fonts//type1:$TEXMF/tex//
  131. kdebug:  font override var applies = 0
  132. kdebug:  application config file path = (none)
  133. kdebug:  texmf.cnf path = .:~/usr/tex//:$TEXMF/dvips:$TEXMF/fonts//type1:$TEXMF/tex//
  134. kdebug:  compile-time path = .:/usr/local/tex/lib/texmf/dvips:/usr/local/tex/lib/texmf/fonts//type1
  135. kdebug:  suffix = (none)
  136. kdebug:  search only with suffix = 0
  137. kdebug:  runtime generation program = (none)
  138. kdebug:  extra program args = (none)
  139. kdebug:fopen(/usr/local/tex/lib/texmf/dvips/texc.pro, r) => 0x40001058
  140. kdebug:fclose(0x40001058) => 0
  141. Adding header file "texc.pro" 4102
  142. ' TeX output 1994.11.30:1602' -> design.ps
  143. kdebug:fopen(/usr/local/tex/lib/texmf/tex/local/pstricks/pstricks.pro, r) => 0x40001058
  144. kdebug:fclose(0x40001058) => 0
  145. Adding header file "pstricks.pro" 9556
  146. ...
  147.  
  148. Thanks,
  149. --pete
  150. Pete Ware                    ware@cis.ohio-state.edu
  151. CIS Dept, Ohio State University            w/ (614) 292-8501
  152. 774 Dreese, 2015 Neil Ave.            h/ (614) 791-1347
  153. Columbus, OH 43210            http://www.cis.ohio-state.edu/~ware